<template>
	<view class="cell-item" :class="{borderbrm:borderBtm}" @tap="toPage(url)">
		<view class="title">
			<view class="ico">
				<image :src="ico" mode=""></image>
			</view>
			<text>{{title}}</text>
		</view>
		<view class="next" :style="{color:desColor}">{{des}}</view>
	</view>
</template>

<script>
	export default {
		props:{
			ico:String,
			title:String,
			des:String,
			url:String,
			desColor:String,
			borderBtm:{
				type:Boolean,
				default:()=>{
					return false
				}
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			toPage(url){
				uni.navigateTo({
				    url: url
				});
				uni.switchTab({
				    url: url
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.cell-item{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 25rpx 0;
		
		.title{
			display: flex;
			align-items: center;
			.ico{
				text-align: center;
				
				image{
					max-width: 29rpx;
					max-height: 29rpx;
					margin-right: 23rpx;
					
				}
			}
			text{
				font-size: 28rpx;
				color: #4C4C4C;
				line-height: 40rpx;
			}
		}
		.next{
			min-height: 20rpx;
			min-width: 11rpx;
			font-size: 24rpx;
			color: #4A90E2;
			line-height: 33rpx;
			background: url(../static/image/ico/next.png)right center no-repeat;
			background-size: 11rpx 20rpx;
			padding-right: 26rpx;
		}
	}
	.borderbrm{
		border-bottom: 1px solid #E6E6E6;
	}
</style>
